package vip.xiaonuo.modular.manage.biuserbusiness.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

/**
 * @author makejava
 * @datetime 2022-08-10 18:37:37
 */
@Data
@ApiModel(description = "信息类")
public class BiUserTrade extends Model<BiUserTrade> implements Serializable {
    private static final long serialVersionUID = 780450830322806780L;

    @ApiModelProperty("自增主键")
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("门店id")
    private Long storeId;

    @ApiModelProperty("业务id")
    private Long busiId;
    @ApiModelProperty("外部订单编号(用户交易系统订单编号)")
    private String outId;

    @ApiModelProperty("状态: 0未支付,1 成功，4支付失败，9支付中")
    private String status;

    @ApiModelProperty("支付场景（0现金，1刷卡，2商家扫用户手机，3用户扫商家生成的二维码（非商城），4JSPAY公从号，5HTML5付款，6APP支付，7 POS支付）")
    private String tradeType;

    @ApiModelProperty("交易支付时间")
    private Date tradePayTime;

    @ApiModelProperty("订单创建时间")
    private Date addTime;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("创建人")
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("更新人")
    private Long updateUser;



    @ApiModelProperty("交易金额（分）")
    private Long tradeAmount;

}

